package com.shenmazong.serverboottest.service.impl;

import com.shenmazong.serverboottest.mapper.IDbMapper;
import com.shenmazong.serverboottest.pojo.TbUser;
import com.shenmazong.serverboottest.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 田不平
 * @project server-security
 * @date 2020/3/8 4:36 PM
 * http://www.shenmazong.com
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    IDbMapper iDbMapper;

    @Override
    public String hello() {
        return "UserService:hello";
    }

    @Override
    public TbUser getUser(Integer id) {
        return iDbMapper.getUserById(id);
    }
}
